import React, { Suspense } from "react";
import { BrowserRouter } from "react-router-dom";

import "./assets/css/base.css";
import "./assets/css/iconfont.css";
import "./assets/css/common.css";
import "./assets/css/animate.css";
import { Switch } from "react-router-dom";
import routes from "./router/index.jsx";
import { renderRoutes } from "react-router-config";
import Player from "@/components/player";
const App = () => {
  return (
    <BrowserRouter>
      <Suspense fallback={null}>
        <Switch>{renderRoutes(routes)}</Switch>
      </Suspense>
      <Player />
    </BrowserRouter>
  );
};
export default App;
